<%-- 
    Document   : addexampaper
    Created on : 2012-3-21, 18:20:51
    Author     : xiaoxiao
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib  prefix="s"  uri="/struts-tags"%>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>增加试卷</title>
        <link href="css/global.css" rel="stylesheet" type="text/css">
        <link href="css/form.css" rel="stylesheet" type="text/css">
        <script type="text/javascript" src="js/jquery.min.js"></script>
        <script type="text/javascript" src="js/jquery.validate.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $('#signup').validate({
                }); // end validate
            }); // end ready()
        </script>
    </head>
    <body>
        <s:if test="%{#session.islogin}">
            <div id="contentWrap">
                <div id="main">
                    <h2>增加试卷</h2>
                    <s:form action="examadd" method="post" name="signup" id="signup">
                        <s:hidden name="examadd.userid" value="%{#session.userid}"></s:hidden>
                        <div>
                            <label  class="label">试卷名称 </label>
                            <s:textfield name="examadd.name"  cssClass="required" title="请输入试卷名称"></s:textfield>
                        </div>
                        <div>
                            <label  class="label">试卷描述</label>
                            <s:textarea name="examadd.descript"  cssClass="required" title="请输入试卷描述" cols="25" rows="2"></s:textarea>
                        </div>
                        <div>
                            <input type="reset"  value="重置" id="ereset">
                            <input type="submit" name="submit" id="submit" value="添加">
                        </div>
                    </s:form>
                </div>
            </div>
        </s:if>
        <s:else>
            <%
                        response.sendRedirect("login.jsp");
            %>
        </s:else>
    </body>
</html>
